package com.gitee.sop.sdk.open.config;

import com.gitee.sop.sdk.client.OpenClient;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

/**
 * @author: Admin
 * @date: 2021/3/16
 * @description:
 * @copyright: 重庆万蓝兴科技有限公司
 */
@Component
public class ClientConfig {
    @Value("${lxy.gateWayUrl:http://localhost:8081}")
    private String url;
    @Value("${lxy.appId:}")
    private String appId;
    @Value("${lxy.privateKey:}")
    private String privateKey;


    @Bean
    public OpenClient initOpenClient() {
        return new OpenClient(url, appId, privateKey);
    }
}
